package io.renren.modules.medical.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 *	治疗信息实体
 * @author luosheng
 * @email luoshengshuai@foxmail.com
 * @date 2023-05-13 16:11:38
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("patient_treatment_information")
public class PatientTreatmentInformationEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * patient_basic表的id
	 */
	@NotNull(message = "patientDiseaseId不能为null", groups = {AddGroup.class, UpdateGroup.class})
	private Long patientDiseaseId;
	/**
	 * k_l分期
	 */
	@NotNull(message = "klStage不能为null", groups = {AddGroup.class, UpdateGroup.class})
	private Integer klStage;
	/**
	 * 中医诊断及证型
	 */
	@NotBlank(message = "diagnoseResult不能为null", groups = {AddGroup.class, UpdateGroup.class})
	private String diagnoseResult;
	/**
	 * 药物治疗表id
	 */
	@Null(message = "drugTreatmentId必须为null", groups = {AddGroup.class, UpdateGroup.class})
	private Long drugTreatmentId;
	/**
	 * 非药物治疗表id
	 */
	@Null(message = "nonDrugTreatmentId必须为null", groups = {AddGroup.class, UpdateGroup.class})
	private Long nonDrugTreatmentId;
	/**
	 * 手术治疗表id
	 */
	@Null(message = "operationTreatmentId必须为null", groups = {AddGroup.class, UpdateGroup.class})
	private Long operationTreatmentId;
}
